package com.translate.web.service.impl;

import com.translate.web.dao.SecondaryServiceTypeMapper;
import com.translate.entity.SecondaryServiceType;
import com.translate.web.service.ISecondaryServiceTypeService;
import com.basic.service.impl.BaseServiceImpl;
import com.param.contract.IIdParam;

import org.springframework.stereotype.Service;

@Service
public class SecondaryServiceTypeServiceImpl extends BaseTranslateServiceImpl<SecondaryServiceType>
		implements ISecondaryServiceTypeService {
	public SecondaryServiceTypeServiceImpl(SecondaryServiceTypeMapper mapper) {
		super(mapper);
	}

	protected void insertPropteris(SecondaryServiceType data) {
		long time = System.currentTimeMillis() / 1000;
		data.setCreateTime(time);
		data.setUpdateTime(time);
	}

	protected void updatePropteris(SecondaryServiceType data) {
		data.setUpdateTime(System.currentTimeMillis() / 1000);
	}

	protected Class<SecondaryServiceType> getEntityClass() {
		return SecondaryServiceType.class;
	}

}